package org.yh.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.yh.model.Permission;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author yh
 * @since 2018-12-10
 */
public interface PermissionMapper extends BaseMapper<Permission> {

    /**
     * 更加用户id查询所有权限
     *
     * @param id
     * @return
     */
    List<Permission> findPermissionsByUserId(@Param("userId") Long id);
}
